/*
 *                    COPYRIGHT NOTICE
 *
 *           This code is copyright protected by Freedom Inc.
 *
 *              2001-2012 All Rights Are Reserved
 */
package com.freedom.oldsong.system.dto;

import java.util.List;


/**
 * @author steven.wang
 *
 */
public class MenuItemDto {
	
	private String systemType;			

	private Integer index;
	
	private String name;				
	
	private String displayName;			
	
	private String icon;				
	
	private String src;
	
	private String parameter;
	
	private MenuItemDto parent;				
	
	private MenuItemDto after;
	
	private MenuItemDto me;
	
	private List<MenuItemDto> subMenus;
	
	private String[] requiredPrivieges;
	
	private String[] requiredRoles;
	
	public MenuItemDto(MenuItemDto parent,MenuItemDto me){
		this.parent=parent;
		this.me=me;
	}

	public String getSystemType() {
		return systemType;
	}

	public void setSystemType(String systemType) {
		this.systemType = systemType;
	}

	public Integer getIndex() {
		return index;
	}

	public void setIndex(Integer index) {
		this.index = index;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDisplayName() {
		return displayName;
	}

	public void setDisplayName(String displayName) {
		this.displayName = displayName;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public String getSrc() {
		return src;
	}

	public void setSrc(String src) {
		this.src = src;
	}

	public String getParameter() {
		return parameter;
	}

	public void setParameter(String parameter) {
		this.parameter = parameter;
	}

	public MenuItemDto getParent() {
		return parent;
	}

	public void setParent(MenuItemDto parent) {
		this.parent = parent;
	}

	public MenuItemDto getAfter() {
		return after;
	}

	public void setAfter(MenuItemDto after) {
		this.after = after;
	}

	public List<MenuItemDto> getSubMenus() {
		return subMenus;
	}

	public void setSubMenus(List<MenuItemDto> subMenus) {
		this.subMenus = subMenus;
	}

	public String[] getRequiredPrivieges() {
		return requiredPrivieges;
	}

	public void setRequiredPrivieges(String[] requiredPrivieges) {
		if(requiredPrivieges!=null){
			this.requiredPrivieges = requiredPrivieges.clone();
		}
	}

	public String[] getRequiredRoles() {
		return requiredRoles;
	}

	public void setRequiredRoles(String[] requiredRoles) {
		if(requiredRoles!=null){
			this.requiredRoles = requiredRoles.clone();
		}
	}

	public MenuItemDto getMe() {
		return me;
	}

	public void setMe(MenuItemDto me) {
		this.me = me;
	}

}
